package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "taohua_voice")
public class Sound implements Serializable {

    private static final long serialVersionUID = 4133543451260037769L;

    private ObjectId id;    //id
    private Long userId;    //发送者id
    private String soundUrl;//音频链接
    private Long created;   //发布时间

}
